#ifndef IO_MNG_H
#define IO_MNG_H
#include <stdint.h>
#include "pixel.h"
#include "nal.h"
#include "bitstream.h"

#define MAX_FILENAME 256
#define OUTPUT_FILENAME "./test.h264"

typedef struct input_img_ctx
{
    char filename[MAX_FILENAME];
    int width;
    int height;
    uint8_t *data;
    int data_len;
    pix_fmt_e pix_fmt;
    plane_ptr_t plane;
}input_img_ctx_t;

int read_data_to_input_ctx(input_img_ctx_t *ctx, pix_fmt_e pix_fmt);
int io_mng_write_nal_pack(nal_t *nal, const char *filename);
#endif /* IO_MNG_H */
